﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class perfindpwd : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
       // =Calendar1.SelectedDate.Year.ToString("yyyy") + Calendar1.SelectedDate.Month.ToString("MM") + Calendar1.SelectedDate.Day.ToString("dd");
        string date= Calendar1.SelectedDate.ToString("yyyyMMdd");
        Login lg = new Login();
        if (lg.updateperfindpwd(TextBox1.Text.Trim(), TextBox2.Text.Trim(), date).Equals("1"))
        {
            Response.Write("<script>alert('你的密码已被系统重置唯一1');window.location.href='Default.aspx';</script>");
        }
    }
}
